﻿using UnityEngine;

namespace ProjectIndieFarm
{
    public static class PlantExtensions
    {
        /// <summary>
        /// 消除种植的坑
        /// </summary>
        /// <param name="self"></param>
        public static void ClearSoilDigState(this IPlant self)
        {
            UnityEngine.Object.FindObjectOfType<GridController>().Soil.SetTile(new Vector3Int(self.XCell, self.YCell), null);
        }
    }
}
